﻿<UserControl x:Class="EX_NFC.FrontEnd.Windows.Controls.TagBlockValue"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <!-- ROW 0 -->
        <extToolkit:DoubleUpDown Grid.Column="0"
                                 Grid.Row="0"
                                 Margin="{DynamicResource BasicMargin}"
                                 Width="80"
                                 VerticalAlignment="Center"
                                 Value="{Binding BlockValue,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
        <Button Content="{Binding Source={StaticResource Localizer},Path=Localize.TagBlockValue_GetValue}"
                Command="{Binding CommandGetValue}"
                Grid.Column="1"
                Grid.Row="0"
                Margin="{DynamicResource BasicMargin}"
                Width="{DynamicResource MediumControlWidth}"
                Height="{DynamicResource MediumControlHeight}" />
        <!-- ROW 1 -->
        <Button Content="{Binding Source={StaticResource Localizer},Path=Localize.TagBlockValue_SetValue}"
                Command="{Binding CommandSetValue}"
                Grid.Column="1"
                Grid.Row="1"
                Margin="{DynamicResource BasicMargin}"
                Width="{DynamicResource MediumControlWidth}"
                Height="{DynamicResource MediumControlHeight}" />
        <!-- ROW 2 -->
        <extToolkit:DoubleUpDown Grid.Column="0"
                                 Grid.Row="2"
                                 Margin="{DynamicResource BasicMargin}"
                                 Width="80"
                                 VerticalAlignment="Center"
                                 Value="{Binding BlockValueIncrement,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
        <Button Content="{Binding Source={StaticResource Localizer},Path=Localize.TagBlockValue_Increment}"
                Command="{Binding CommandIncValue}"
                Grid.Column="1"
                Grid.Row="2"
                Margin="{DynamicResource BasicMargin}"
                Width="{DynamicResource MediumControlWidth}"
                Height="{DynamicResource MediumControlHeight}" />
        <!-- ROW 3 -->
        <Button Content="{Binding Source={StaticResource Localizer},Path=Localize.TagBlockValue_Decrement}"
                Command="{Binding CommandDecValue}"
                Grid.Column="1"
                Grid.Row="3"
                Margin="{DynamicResource BasicMargin}"
                Width="{DynamicResource MediumControlWidth}"
                Height="{DynamicResource MediumControlHeight}" />
    </Grid>
</UserControl>
